-- GENERATED SPELL FOR [Taunka Windfury] --


function spell0_27571(pUnit, Event) --@Healing Touch,Heal--
pUnit:FullCastSpellOnTarget(23381,pUnit)
pUnit:RegisterEvent('Sorts_27571', 3000, 1)
end

function spell1_27571(pUnit, Event) --@Moonfire,n/a--
pUnit:FullCastSpellOnTarget(23380,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27571', 12000, 1)
end

function Sorts_27571(pUnit, Event)
local choix_sorts_27571 = math.random(0, 1)
if choix_sorts_27571 == 0 then
pUnit:RegisterEvent('spell0_27571', 1, 1)
end
if choix_sorts_27571 == 1 then
pUnit:RegisterEvent('spell1_27571', 1, 1)
end
end

function mob27571_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27571', math.random(1500, 3000), 1)
end

function mob27571_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27571_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27571_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27571, 1, 'mob27571_Action')
RegisterUnitEvent(27571, 2, 'mob27571_Leave')
RegisterUnitEvent(27571, 3, 'mob27571_Kill')
RegisterUnitEvent(27571, 4, 'mob27571_Die')
